package com.ssy.lingxi.platform.template.service.constant;

import com.ssy.lingxi.common.language.LanguageHolder;

/**
 * 页面模板适用环境 - enum
 * @author fhj
 * @date 2020/07/30
 * @version 2.0.0
 */
public enum PageTemplateEnvironmentEnum {

    WEB(1, "Web"),
    H5(2, "H5"),
    APPLETS(3, "小程序"),
    APP(4, "App");

    private final Integer code;

    PageTemplateEnvironmentEnum(Integer code, String message) {
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return LanguageHolder.getName(this.getClass(), this.code);
    }
}
